package com.exam.qc.client;



import com.exam.qc.fallback.ProductFeignClientFallback;
import com.exam.qc.fallback.QualityFeignClientFallback;
import com.exam.qc.model.Product;
import com.exam.qc.model.Quality;
import com.exam.qc.model.ReturnVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(name = "QC-CLOUD-PROVIDER", fallback = QualityFeignClientFallback.class)
public interface QualityFeignClient {

    /**
     * 质检操作接口
     * @param quality
     * @return
     */

    @RequestMapping(value = "/quality/save",consumes = "application/json")
    public ReturnVo saveQuality(@RequestBody Quality quality);


}
